import axios, { AxiosResponse } from "axios"
export interface User {
    'avatar': string | null,
    'username': string,
    'age': number | null,
    'sex': '男' | '女' | null,
    'password'?: string,
    'email': string | null,
    'code': string | null
}

export interface UserList<T> {
    list: T[]
}

export interface Resp<T> {
    code: number,
    data: T,
    message?: string
}

export interface AxiosResp<T> extends AxiosResponse<Resp<T>>{}